package com.ruoyi.web.controller.acitviti;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.workFlow.domain.dto.ActivitiHighLineDTO;
import com.ruoyi.workFlow.service.IFormHistoryDataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ActivitiHistoryController
 * @Description 进度显示
 * @Author leizhang
 * Date 2021/11/6 7:55 下午
 * @Version 1.0
 **/
@RestController
@RequestMapping("/activitiHistory")
public class ActivitiHistoryController {
    private static Logger LOGGER = LoggerFactory.getLogger(ActivitiHistoryController.class);

    @Autowired
    private IFormHistoryDataService formHistoryDataService;

    /**
     * @param instanceId
     * @return com.ruoyi.common.core.domain.AjaxResult
     * @Description :流程高亮显示
     * @Author : leizhang
     * @Date 8:00 下午 2021/11/6
     **/
    @GetMapping("/gethighLine")
    public AjaxResult gethighLine(@RequestParam("instanceId") String instanceId) {
        ActivitiHighLineDTO activitiHighLineDTO = formHistoryDataService.gethighLine(instanceId);
        return AjaxResult.success(activitiHighLineDTO);
    }
}
